package org.wltea.analyzer.dic;


import org.apache.logging.log4j.Logger;
import org.wltea.analyzer.help.ESPluginLoggerFactory;

/**
 * @Author: lihui
 * @Date: 2021-11-29 17:02
 * @Description: 词条更新线程
 */
public class HotDictReloadThread implements Runnable {

    private static final Logger logger = ESPluginLoggerFactory.getLogger(HotDictReloadThread.class.getName());

    @Override
    public void run() {
        while (true){
            logger.info("[=============] reload hot dict from mysql......");
            Dictionary.getSingleton().reLoadMainDict();
        }

    }
}
